<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="./css/login.css">
</head>
<style>
    body{
        background: url('./img/loginbg.jpg') top left;
        background-size: 100%;
    }
</style>
<body>
<div id="loginDiv" align="center">
    <form action="/CourseMS/loginServlet" id="form" method="post">
        <h1 id="loginMsg">用户登录</h1>
        <div id="errorMsg">${login_msg} ${register_msg}</div>
        <p>用户名：<input id="username" name="username" value="${cookie.username.value}" type="text"></p>
        <p>密码：<input id="password" name="password" value="${cookie.password.value}" type="password"></p>
        <label><input type="radio" name="role" value="1" checked>学生</label>
        <label><input type="radio" name="role" value="2">教师</label>
        <label><input type="radio" name="role" value="3">管理员</label>
        <p>记住我：<input id="remember" name="remember" value="1" type="checkbox"></p>
        <div id="subDiv">
            <input type="submit" class="button" value="登录">
            <input type="reset" class="button" value="重置">
            <a href="register.jsp">没有账号？点击注册</a>
        </div>
    </form>
</div>
</body>
</html>

